All Functions of Week 5

mutate

{dplyr}

Modify/create a column in a data frame

library

{base}

Load an R package

levels

{base}

Get levels of a factor

ifelse

{base}

Return a or b depending on the value of test

ungroup

{dplyr}

Resolve grouping created with “group_by”

names

{base}

Retrieve names of a list/vector

filter

{dplyr}

Filter out rows of a data frame according to logical vector

cut

{base}

Convert Numeric to Factor

str

{utils}

Get the structure of an R object

arrange

{dplyr}

Sort values of data frame according to a variable/combination of varaibles

head

{utils}

Show first 5 rows of a data frame

mean

{base}

Get mean of a vector

slice

{dplyr}

Subset rows using their positions

select

{dplyr}

Select columns from a tibble/data frame

read_excel

{readxl}

Read an Excel file

recode

{dplyr}

Recode a variable

desc

{dplyr}

Arrange in descending order

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

summarise

{dplyr}

collapse the dataset to a summary statistic. Usually used with group_by()

factor

{base}

Create a factor

c

{base}

Combine values/vectors into a vector

setwd

{base}

Set Working Directory

The end!